package com.ywqf_api.enums;

public enum HouseEnum {
    SUCCESS(1000,"成功！"),
    FIND_SUCCESS(1001,"查询成功！"),
    FIND_FILE(1,"查询失败"),
    ADD_SUCCESS(1002,"添加成功"),
    ADD_FILE(2,"添加失败"),
    UPDATE_SUCCESS(1003,"编辑成功！"),
    UPDATE_FILE(3,"编辑失败"),
    DELETE_SUCCESS(1004,"删除成功"),
    DELETE_FILE(4,"删除失败"),
    NO_RENT(10,"未出租"),
    NO_BUY(11,"未出售"),
    ALL_NO(12,"未租未售"),
    ALL_EXIST(13,"已经租售"),
    ALREADY_BUY(14,"已经购买"),
    ALREADY_RENT(15,"已经出租"),
    FILE(99,"未知错误");

    private int code;
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    HouseEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
